home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
LOTTORTS
/
LOTOQINT.LZH
/
INSTALL.BAT
next >
Wrap
DOS Batch File
|
1992-11-03
|
6KB
|
176 lines
echo off
cls
:HelpCheck
if "%1"=="" goto help
:FloppyCheck
if "%1" == "A:" goto FloppyError
if "%1" == "a:" goto FloppyError
if "%1" == "B:" goto FloppyError
if "%1" == "b:" goto FloppyError
:ShowDrive
set direct=%2
if "%2"=="" set direct=\QUINT
cd %1%direct%
cls
echo
echo LOTTO THUNDER QUINT INSTALLATION
echo
if exist %1pick5.exe goto Exists
if exist %1*.dbf goto Exists
echo The selected path for Lotto Thunder Quint is:
echo
echo %1%direct%
echo
echo You may see an "Unable to create directory" message if the
echo directory is already present on your hard drive. This is only a
echo warning; the installation will continue successfully.
echo
echo Press any key to continue the installation or a ^C (the CONTROL
echo and C keys at the same time) to abort the installation.
pause > nul:
echo
:Install
md %1%direct%
echo Please wait, copying files ...
quint5 /e%1%direct%
if errorlevel 1 goto CopyError
cd %1%direct%
%1
set direct=
%1
set direct=
echo
echo Lotto Thunder Quint has been installed. Type QUINT at the
echo DOS prompt to start the program.
goto Exit
:help
echo To install Lotto Thunder Quint on your hard drive type A:
echo or B: to select the floppy drive containing the Lotto Thunder
echo Quint distribution disk. Press a carriage return to select this
echo drive. Then type INSTALL followed by the hard drive identifier
echo to receive the program. For example:
echo
echo A:
echo INSTALL C:
echo
echo The default directory will be QUINT. If you would like to change
echo the default directory, you may enter the new directory after your
echo drive identifier. For example:
echo
echo INSTALL C: \PICK5
echo
echo The SPACE MUST BE PRESENT BETWEEN THE DRIVE AND DIRECTORY or the
echo install will not complete successfully.
echo
echo The installation can be aborted at any time by pressing a ^C (the
echo CONTROL and C keys at the same time).
goto Exit
:FloppyError
echo Lotto Thunder Quint can only be installed on a hard drive.
echo The drive letter must be a hard drive identifier.
echo Please try again using the letter for your hard drive.
goto Exit
:Exists
echo
echo *** WARNING ***
echo
echo A previous copy of Lotto Thunder Quint\Lotto Prophecy Quint exists on
echo your hard drive in %1%direct%.
echo
echo If you continue, only Lotto Thunder Quint\Lotto Prophecy Quint will be
echo overwritten. Your database files with the same file names
echo that are being installed will be renamed with the file
echo extension BAK (*.bak).
echo
echo If the file Quint.dbf exist, this file will be preserved.
echo
echo You will see an "Unable to create directory" message. This is
echo only a warning; the installation will continue successfully.
echo
echo Press any key to continue the installation or a ^C (the CONTROL
echo and C keys at the same time) to abort the installation.
pause > nul:
echo
echo One Moment...........Checking HARD-DISK.................
echo
if exist %1fl5-39.dbf ren %1fl5-39.dbf *.bak
if exist %1il5-35.dbf ren %1il5-35.dbf *.bak
if exist %1ri5-40.dbf ren %1ri5-40.dbf *.bak
if exist %1ca5-39.dbf ren %1ca5-39.dbf *.bak
if exist %1ma5-35.dbf ren %1ma5-35.dbf *.bak
if exist %1mn5-39.dbf ren %1mn5-39.dbf *.bak
if exist %1quint.bat del %1quint.bat
if exist %1quint.exe del %1quint.exe
if exist %1quint.sys del %1quint.sys
if exist %1read.me del %1read.me
if exist %1thundq1.ovl del %1thundq1.ovl
if exist %1thundq2.ovl del %1thundq2.ovl
if exist %1thundq3.ovl del %1thundq3.ovl
if exist %1thundq4.ovl del %1thundq4.ovl
if exist %1QUINT.DOC del %1QUINT.DOC
if exist %1REGISTER.DOC del %1REGISTER.DOC
if exist %1OMBUDSMN.ASP del %1OMBUDSMN.ASP
if exist %1PACKING.LST del %1PACKING.LST
if exist %1VENDOR.DOC del %1VENDOR.DOC
if exist %1SYSOP.DOC del %1SYSOP.DOC
if exist %1DESCRIBE.DOC del %1DESCRIBE.DOC
if exist %1WARRANTY.DOC del %1WARRANTY.DOC
if exist %1LICENSE.DOC del %1LICENSE.DOC
if exist %1FL5-39.DBF del %1FL5-39.DBF
if exist %1IL5-35.DBF del %1IL5-35.DBF
if exist %1MA5-35.DBF del %1MA5-35.DBF
if exist %1MN5-39.DBF del %1MN5-39.DBF
if exist %1CA5-39.DBF del %1CA5-39.DBF
if exist %1AR5-36.DBF del %1AR5-36.DBF
if exist %1NY5-39.DBF del %1NY5-39.DBF
if exist %1KY5-35.DBF del %1KY5-35.DBF
if exist %1CT5-35.DBF del %1CT5-35.DBF
if exist %1OH5-37.DBF del %1OH5-37.DBF
if exist %1MD5-39.DBF del %1MD5-39.DBF
if exist %1MT5-37.DBF del %1MT5-37.DBF
if exist %1TR5-35.DBF del %1TR5-35.DBF
if exist %1PA5-39.DBF del %1PA5-39.DBF
if exist %1MI5-39.DBF del %1MI5-39.DBF
if exist %1WA5-49.DBF del %1WA5-49.DBF
if exist %1ID5-32.DBF del %1ID5-32.DBF
goto Install
:CopyError
echo
echo An error occurred creating the specified directory, or copying one
echo of the Lotto Thunder Quint files to your hard disk. At
echo least 2.0 megabytes of disk space must be available to install
echo Lotto Thunder Quint. CHKDSK can be used to verify that sufficient
echo space is available.
echo If you cannot get the install batch file to work. You can copy the
echo file QUINT5.EXE to your harddisk. Then type QUINT5 at the DOS
echo prompt to start the self-extracting process.
:Exit
echo
echo